package com.china08.yxyapi.repository.mg.continuedu;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import com.china08.yxyapi.entity.mg.continuedu.YxyContinueduUserTaskLesson;

public interface YxyContinueduUserTaskLessonRepository extends MongoRepository<YxyContinueduUserTaskLesson, String> {

    Page<YxyContinueduUserTaskLesson> findByTaskIdAndUserId(String taskId, String userId, Pageable pageable);

    YxyContinueduUserTaskLesson findById(String lessonId);

    Long countByTaskId(String taskId);

}
